package cn.pomelo.signal.model;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

@Data
public class Trade implements Serializable {

    /**
     * 股票代码
     */
    private String code;

    /**
     * 股票名称
     */
    private String name;

    /**
     * 日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8", shape = JsonFormat.Shape.STRING)
    private Date date;

    /**
     * 开盘
     */
    private Double open;

    /**
     * 最高
     */
    private Double highest;

    /**
     * 最低
     */
    private Double lowest;

    /**
     * 收盘
     */
    private Double close;

    /**
     * 成交量
     */
    private Long traded;

    /**
     * 成交额度
     */
    private Double transaction;

    private static final long serialVersionUID = 1L;
}